const Router = require("koa-router");
const main = require("../../models");
const router = new Router();
router.get("/home",async ctx=>{
    var talbe = await main("top250");
    var movies = await talbe.find().toArray();
    console.log(movies)
    await ctx.render("home",{movies})
    
})
module.exports = router;